package com.learn.runner;

import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.context.WebServerApplicationContext;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class FirstAppByGuiApplication {
    @Bean
    public ApplicationRunner runner(WebServerApplicationContext context) {
        return args -> {
            System.out.println("当前WebServer实现类为:"
                    + context.getWebServer().getClass().getName());
        };
    }
}
